/*
 * Created by JFormDesigner on Mon Apr 12 02:05:42 CEST 2010
 */

package visualCAD;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

/**
 * @author Brainrain
 */
public class PocketWindowView extends JFrame {
	public PocketWindowView() {
		initComponents();
	}

	private void initComponents() {
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		panel2 = new JPanel();
		label19 = new JLabel();
		nameTextField = new JTextField();
		label2 = new JLabel();
		radiusSpinner = new JSpinner();
		label1 = new JLabel();
		label12 = new JLabel();
		toleranceDiameterPocketTextField = new JSpinner();
		label13 = new JLabel();
		label3 = new JLabel();
		depthSpinner = new JSpinner();
		label8 = new JLabel();
		label7 = new JLabel();
		widthSpinner = new JSpinner();
		label15 = new JLabel();
		label14 = new JLabel();
		lenghtSpinner = new JSpinner();
		label9 = new JLabel();
		label17 = new JLabel();
		label4 = new JLabel();
		xPositionSpinner = new JSpinner();
		label16 = new JLabel();
		label6 = new JLabel();
		yPositionSpinner = new JSpinner();
		label10 = new JLabel();
		label18 = new JLabel();
		label5 = new JLabel();
		zPositionSpinner = new JSpinner();
		label11 = new JLabel();
		pocketPanel = new JPanel();
		pocketSplitPanel = new JSplitPane();
		cancelButton = new JButton();
		submitButton = new JButton();
		label20 = new JLabel();
		helpButton = new JButton();

		//======== this ========
		setTitle("Create Pocket");
		setVisible(true);
		Container contentPane = getContentPane();

		//======== panel2 ========
		{
			panel2.setLayout(new GridBagLayout());
			((GridBagLayout)panel2.getLayout()).columnWidths = new int[] {0, 0, 0, 50, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).rowHeights = new int[] {0, 0, 10, 0, 10, 0, 10, 0, 10, 0, 10, 0, 0, 10, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0};
			((GridBagLayout)panel2.getLayout()).columnWeights = new double[] {1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};
			((GridBagLayout)panel2.getLayout()).rowWeights = new double[] {1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0E-4};

			//---- label19 ----
			label19.setText("Name:");
			panel2.add(label19, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(nameTextField, new GridBagConstraints(3, 1, 5, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label2 ----
			label2.setText("Radius:");
			panel2.add(label2, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- radiusSpinner ----
			radiusSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(radiusSpinner, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label1 ----
			label1.setText(" mm");
			panel2.add(label1, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label12 ----
			label12.setText(" +/-");
			panel2.add(label12, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- toleranceDiameterPocketTextField ----
			toleranceDiameterPocketTextField.setModel(new SpinnerNumberModel(50, 0, 50, 1));
			panel2.add(toleranceDiameterPocketTextField, new GridBagConstraints(6, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label13 ----
			label13.setText(" um");
			panel2.add(label13, new GridBagConstraints(7, 3, 1, 1, 0.0, 0.0,
				GridBagConstraints.SOUTH, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label3 ----
			label3.setText("Depth:");
			panel2.add(label3, new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- depthSpinner ----
			depthSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(depthSpinner, new GridBagConstraints(3, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label8 ----
			label8.setText(" mm");
			panel2.add(label8, new GridBagConstraints(4, 5, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label7 ----
			label7.setText("Width:");
			panel2.add(label7, new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- widthSpinner ----
			widthSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(widthSpinner, new GridBagConstraints(3, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label15 ----
			label15.setText(" mm");
			panel2.add(label15, new GridBagConstraints(4, 7, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label14 ----
			label14.setText("Lenght:");
			panel2.add(label14, new GridBagConstraints(1, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- lenghtSpinner ----
			lenghtSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(lenghtSpinner, new GridBagConstraints(3, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label9 ----
			label9.setText(" mm");
			panel2.add(label9, new GridBagConstraints(4, 9, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(label17, new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label4 ----
			label4.setText("X Position:");
			panel2.add(label4, new GridBagConstraints(1, 12, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- xPositionSpinner ----
			xPositionSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(xPositionSpinner, new GridBagConstraints(3, 12, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label16 ----
			label16.setText(" mm");
			panel2.add(label16, new GridBagConstraints(4, 12, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label6 ----
			label6.setText("Y Positions:");
			panel2.add(label6, new GridBagConstraints(1, 14, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- yPositionSpinner ----
			yPositionSpinner.setModel(new SpinnerNumberModel(0.0, 0.0, null, 0.1));
			panel2.add(yPositionSpinner, new GridBagConstraints(3, 14, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label10 ----
			label10.setText(" mm");
			panel2.add(label10, new GridBagConstraints(4, 14, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));
			panel2.add(label18, new GridBagConstraints(1, 15, 1, 1, 0.0, 0.0,
				GridBagConstraints.CENTER, GridBagConstraints.BOTH,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label5 ----
			label5.setText("Z Position:");
			panel2.add(label5, new GridBagConstraints(1, 16, 1, 1, 0.0, 0.0,
				GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- zPositionSpinner ----
			zPositionSpinner.setModel(new SpinnerNumberModel(0.0, null, 0.0, 0.1));
			panel2.add(zPositionSpinner, new GridBagConstraints(3, 16, 1, 1, 0.0, 0.0,
				GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));

			//---- label11 ----
			label11.setText(" mm");
			panel2.add(label11, new GridBagConstraints(4, 16, 1, 1, 0.0, 0.0,
				GridBagConstraints.BASELINE, GridBagConstraints.HORIZONTAL,
				new Insets(0, 0, 0, 0), 0, 0));
		}

		//======== pocketPanel ========
		{
			pocketPanel.setBackground(Color.white);
			pocketPanel.setBorder(LineBorder.createBlackLineBorder());
			pocketPanel.setLayout(new BorderLayout());

			//======== pocketSplitPanel ========
			{
				pocketSplitPanel.setOrientation(JSplitPane.VERTICAL_SPLIT);
			}
			pocketPanel.add(pocketSplitPanel, BorderLayout.CENTER);
		}

		//---- cancelButton ----
		cancelButton.setText("Cancel");

		//---- submitButton ----
		submitButton.setText("Submit");

		//---- label20 ----
		label20.setText("Status:");

		//---- helpButton ----
		helpButton.setText("Help");

		GroupLayout contentPaneLayout = new GroupLayout(contentPane);
		contentPane.setLayout(contentPaneLayout);
		contentPaneLayout.setHorizontalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGap(18, 18, 18)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addComponent(panel2, GroupLayout.PREFERRED_SIZE, 308, GroupLayout.PREFERRED_SIZE)
						.addComponent(label20))
					.addGap(38, 38, 38)
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
							.addComponent(helpButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(submitButton)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
							.addComponent(cancelButton))
						.addComponent(pocketPanel, GroupLayout.DEFAULT_SIZE, 340, Short.MAX_VALUE))
					.addContainerGap())
		);
		contentPaneLayout.setVerticalGroup(
			contentPaneLayout.createParallelGroup()
				.addGroup(contentPaneLayout.createSequentialGroup()
					.addGroup(contentPaneLayout.createParallelGroup()
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addContainerGap()
							.addComponent(pocketPanel, GroupLayout.PREFERRED_SIZE, 433, GroupLayout.PREFERRED_SIZE)
							.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
							.addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
								.addComponent(cancelButton)
								.addComponent(submitButton)
								.addComponent(label20)
								.addComponent(helpButton)))
						.addGroup(contentPaneLayout.createSequentialGroup()
							.addGap(22, 22, 22)
							.addComponent(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
					.addContainerGap())
		);
		pack();
		setLocationRelativeTo(getOwner());
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	private JPanel panel2;
	private JLabel label19;
	public JTextField nameTextField;
	private JLabel label2;
	public JSpinner radiusSpinner;
	private JLabel label1;
	private JLabel label12;
	public JSpinner toleranceDiameterPocketTextField;
	private JLabel label13;
	private JLabel label3;
	public JSpinner depthSpinner;
	private JLabel label8;
	private JLabel label7;
	public JSpinner widthSpinner;
	private JLabel label15;
	private JLabel label14;
	public JSpinner lenghtSpinner;
	private JLabel label9;
	private JLabel label17;
	private JLabel label4;
	public JSpinner xPositionSpinner;
	private JLabel label16;
	private JLabel label6;
	public JSpinner yPositionSpinner;
	private JLabel label10;
	private JLabel label18;
	private JLabel label5;
	public JSpinner zPositionSpinner;
	private JLabel label11;
	public JPanel pocketPanel;
	public JSplitPane pocketSplitPanel;
	public JButton cancelButton;
	public JButton submitButton;
	private JLabel label20;
	public JButton helpButton;
	// JFormDesigner - End of variables declaration  //GEN-END:variables
}
